<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>flex</title>
</head>
<style>
    * {
        font-size: 40px;
    }

    #flexContainer{
        background-color:aquamarine;
        height: 500px;
        display: flex;
        flex-wrap: wrap;
        flex-direction: column-reverse;
        /* x 主轴对齐方式 */
        justify-content: center;
        /* y 侧轴对齐方式 */
        align-items: center;
    }
    #flexContainer>div{
        font-size: 50px;
        background-color: rgb(255, 72, 0);
        width: 60px;
        height: 60px;
        border: 1px solid black;
    }
    ul{
        display: flex;
        gap: 20px;
        flex-wrap: wrap;
    }
    li {
        margin: 20px;
        list-style: none;
    }
    nav{
        display: flex;
        justify-content: space-between;
    }
</style>
<body>
    <div id="flexContainer">
        <div>1</div>
        <div>2</div>
        <div>3</div>
        <div>4</div>
        <div>5</div>
    </div>
    <nav>
        <ul>
            <li>新闻</li>
            <li>地图</li>
            <li>ai</li>
            <li>图片</li>
            <li>视频</li>  
        </ul>
        <div>
            <button>登录</button>
            <button>设置</button>
        </div>
    </nav>
</body>
</html>